/**
 * Copyright (c) 2023, iDearHanYu Co., Ltd.
 *
 * SPDX-License-Identifier: 
 *
 * Change Logs:
 * Date           Author       Notes
 * 2024-08-16     chao         first version
 */

#include <lvgl.h>
#include "volumio_music.h"

/* private variables */
//static lv_color_t original_screen_bg_color;


void volumio_music(void)
{
//    original_screen_bg_color = lv_obj_get_style_bg_color(lv_scr_act(), 0);
//    lv_obj_set_style_bg_color(lv_scr_act(), lv_color_hex(0x343247), 0);

    music_player_param_init_cb();
    volumio_music_page_init();
    volumio_music_page_switch(PAGE_ID_STARTUP);
}

void volumio_music_close(void)
{
    /* delete all animations */
    lv_anim_del(NULL, NULL);
    lv_obj_clean(lv_scr_act());
//    lv_obj_set_style_bg_color(lv_scr_act(), original_screen_bg_color, 0);
}




